package cn.ekuma.epos.symmetricds.bean.tran;

import java.util.Date;

public class OutgoingBatch {

    public enum Status {
        RT("Routing"), NE("New"), QY("Querying"), SE("Sending"), LD("Loading"), ER("Error"), OK("Ok"), IG("Ignored");
        
        private String description;
        
        Status(String description) {
            this.description = description;
        }
        
        @Override
        public String toString() {
            return description;
        }
    }

    private long batchId;

    private String nodeId;

    private String channelId;

    private Status status = Status.RT;

    private boolean loadFlag;

    private boolean errorFlag;

    private long routerMillis;

    private long networkMillis;

    private long filterMillis;

    private long loadMillis;

    private long extractMillis;

    private long byteCount;

    private long sentCount;

    private long extractCount;

    private long loadCount;

    private long dataEventCount;

    private long reloadEventCount;

    private long insertEventCount;

    private long updateEventCount;

    private long deleteEventCount;

    private long otherEventCount;

    private long failedDataId;

    private String sqlState;

    private int sqlCode;

    private String sqlMessage;

    private String lastUpdatedHostName;

    private Date lastUpdatedTime;

    private Date createTime;
}
